home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 10
/
AACD 10.iso
/
AACD
/
Games
/
MAME
/
src
/
machine
/
ticket.h
< prev
next >
Wrap
Text File
|
2000-04-04
|
1KB
|
35 lines
/***************************************************************************
Function prototypes and constants for the ticket dispenser emulator
***************************************************************************/
#define TICKET_MOTOR_ACTIVE_LOW 0 /* Ticket motor is triggered by D7=0 */
#define TICKET_MOTOR_ACTIVE_HIGH 1 /* Ticket motor is triggered by D7=1 */
#define TICKET_STATUS_ACTIVE_LOW 0 /* Ticket is done dispensing when D7=0 */
#define TICKET_STATUS_ACTIVE_HIGH 1 /* Ticket is done dispensing when D7=1 */
/***************************************************************************
ticket_dispenser_init
msec = how many milliseconds it takes to dispense a ticket
activehigh = see constants above
***************************************************************************/
void ticket_dispenser_init(int msec, int motoractivehigh, int statusactivehigh);
/***************************************************************************
ticket_dispenser_r
***************************************************************************/
READ_HANDLER( ticket_dispenser_r );
/***************************************************************************
ticket_dispenser_w
***************************************************************************/
WRITE_HANDLER( ticket_dispenser_w );